package com.wmm.fast.main.shop2AbstractFactory;

import lombok.extern.slf4j.Slf4j;

/**
 * @Auther: wangzun
 * @Date: 2018/9/13 14:47
 * @Description: mysql的工厂
 */
@Slf4j
public class MysqlFactory implements AbstractFactory {

    @Override
    public UserFactory createUser() {
        log.info("通过mysql工厂创建的属于Mysql的User");
        return new MysqlUserFactory();
    }

}
